package com.powernode.feign;

import com.powernode.dto.AppUserDto;
import com.powernode.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "pn-mall-ums",path = "/ums")
public interface FeignUmsService {

    /**
     * 根据手机号和验证码获取用户信息
     */
    @GetMapping("/app/appUsers/byMobileAndCode")
    Result<AppUserDto> getAppUserByMobileAndCode(@RequestParam("mobile") String mobile, @RequestParam("code") String code);
    /**
     * 根据用户名获取用户信息
     */
    @GetMapping("/app/appUsers/byUsername")
    Result<AppUserDto> getAppUserByUsername(@RequestParam("username") String username);
}
